package com.itheima.test;

import com.cxh.bean.service.Icard;
import com.spring.test.service.ShowService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ChaunceyZhang
 * @date 2022-10-15 21:08
 * @blog1 https://zephyr-cyber.github.io/
 * @blog2 https://www.yuque.com/gougougou-xwscx
 */
public class Demo02 {
    @Test
    public void test(){
        ClassPathXmlApplicationContext ioc = new ClassPathXmlApplicationContext("applicationContext.xml");
        Icard icard = (Icard) ioc.getBean("Icard");
        icard.setCardnumber("123");
        String cardunmber = icard.getCardunmber();
        System.out.println("cardunmber = " + cardunmber);
    }


}
